<template>
  <van-swipe :autoplay="3000" class="detail-swiper">
    <van-swipe-item v-for="(image, index) in topImgs" :key="index">
      <img v-lazy="image" />
    </van-swipe-item>
  </van-swipe>
</template>

<script>

  export default {
    name:'Swiper',
    props:{
      topImgs:{
        type:Array,
        default(){
          return []
        }
      }
    },
    data () {
      return {

      };
    },

    components:{},

    methods:{},

    created(){
      
    }
  }
</script>

<style lang='scss' scoped>
  .detail-swiper{
    height: 300px;
  }
</style>